//
//  ZWNavigationController.m
//  20240823
//
//  Created by 张伟 on 2024/8/24.
//

#import "ZWNavigationController.h"

@interface ZWNavigationController ()

@end

@implementation ZWNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self configNavigationBar];
}

-(void)configNavigationBar {
    UINavigationBarAppearance * appearance  = UINavigationBarAppearance.new;
    appearance.backgroundColor = UIColor.whiteColor;
    self.navigationBar.standardAppearance  = appearance;
    self.navigationBar.scrollEdgeAppearance = appearance;
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
    if (self.viewControllers.count > 0) {
        viewController.hidesBottomBarWhenPushed = true;
    }
    [super pushViewController:viewController animated:animated];
}

@end
